f= open("12.fasta","r")
lines = [i for i in f]
f.close()
for i in range(len(lines)):
    lines[i] = lines[i].replace("*","")
for i in range(len(lines)):
    if lines[i][0] == ">":
        f2 = open("{}.fasta".format(lines[i][1:-1]), "w+")
        f2.writelines(lines[i:i+2])
        f2.close()

